package com.cnciems.lakekb.course.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Builder;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 课程对象 kb_course
 * 
 * @author ruoyi
 * @date 2021-05-20
 */
@TableName("kb_course")
@Data
@Builder
public class KbCourse
{
    private static final long serialVersionUID = 1L;

    /** id */
    private String id;

    /** 编号 */
    private String code;

    /** 课程名称 */
    private String name;

    /** 课程描述 */
    private String des;

    /** 课程类别 */
    private Integer type;

    /** 课程标签 */
    private String label;

    /** 学分 */
    private Integer score;

    /** 学时 */
    private Long studyTime;

    /** 难易程度 */
    private Long easy;

    /** 课程数量 */
    private Integer num;

    /** 必修课 */
    private String necessary;

    /** 是否公开课 */
    private String pubCourse;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setCode(String code) 
    {
        this.code = code;
    }

    public String getCode() 
    {
        return code;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setDes(String des) 
    {
        this.des = des;
    }

    public String getDes() 
    {
        return des;
    }
    public void setType(Integer type) 
    {
        this.type = type;
    }

    public Integer getType() 
    {
        return type;
    }
    public void setLabel(String label) 
    {
        this.label = label;
    }

    public String getLabel() 
    {
        return label;
    }
    public void setScore(Integer score) 
    {
        this.score = score;
    }

    public Integer getScore() 
    {
        return score;
    }
    public void setStudyTime(Long studyTime) 
    {
        this.studyTime = studyTime;
    }

    public Long getStudyTime() 
    {
        return studyTime;
    }
    public void setEasy(Long easy) 
    {
        this.easy = easy;
    }

    public Long getEasy() 
    {
        return easy;
    }
    public void setNum(Integer num) 
    {
        this.num = num;
    }

    public Integer getNum() 
    {
        return num;
    }
    public void setNecessary(String necessary) 
    {
        this.necessary = necessary;
    }

    public String getNecessary() 
    {
        return necessary;
    }
    public void setPubCourse(String pubCourse) 
    {
        this.pubCourse = pubCourse;
    }

    public String getPubCourse() 
    {
        return pubCourse;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("code", getCode())
            .append("name", getName())
            .append("des", getDes())
            .append("type", getType())
            .append("label", getLabel())
            .append("score", getScore())
            .append("studyTime", getStudyTime())
            .append("easy", getEasy())
            .append("num", getNum())
            .append("necessary", getNecessary())
            .append("pubCourse", getPubCourse())
            .toString();
    }
}
